Smush\Core\Lazy_Load\Lazy_Load_Transform C

Total Complexity 106
Dependencies 9
Dependents 1
Total lines 510
Lines of code 352
Logical lines of code 168
Comment lines 85
Methods 32
Properties 7

Methods 32

Method Rating Maintainability Complexity Lines of code
maybe_lazy_load_image_element()
A
45 13 41
maybe_lazy_load_background()
A
52 10 23
element_has_excluded_attribute_values()
A
52 8 26
maybe_lazy_load_source_element()
A
52 8 25
set_placeholder_width_and_height_in_style_attribute()
A
55 8 18
transform_iframe()
S
53 7 25
markup_has_excluded_attribute_values()
S
59 6 15
add_lazy_load_class()
S
61 4 11
get_image_dimensions()
S
62 3 12
get_default_excluded_attributes()
S
51 1 31
transform_image_elements()
S
67 3 8
is_composite_element_excluded()
S
68 3 8
get_lazy_load_options()
S
69 3 7
transform_image_element()
S
65 3 10
get_lazy_load_image_tag_names()
S
66 2 9
transform_elements()
S
74 2 5
replace_attribute_with_data_attribute()
S
66 2 8
replace_attributes_with_data_attributes()
S
73 2 5
get_excluded_attributes()
S
72 2 6
is_element_excluded()
S
76 2 4
transform_iframes()
S
74 2 5
transform_page()
S
71 2 6
should_transform()
S
80 1 3
is_high_priority_element()
S
75 1 4
add_native_lazy_loading_attribute()
S
79 1 3
prepare_excluded_attributes()
S
66 1 9
is_iframe_skipped_through_filter()
S
78 1 3
is_image_element_skipped_through_filter()
S
78 1 3
transform_image_url()
S
82 1 3
element_has_native_lazy_load_attribute()
S
75 1 4
update_element_attributes_for_lazy_load()
S
72 1 5
__construct()
S
68 1 7